* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}


body {
    background-color: #b2d8d8;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

h1 {
    margin-bottom: 20px;
    color: #005f5f;
}

table {
    width: 95%;
    border-collapse: collapse;
    margin-bottom: 10px;
}


thead th {
    background-color: #89c9c9;
    color: #fff;
    padding: 10px;
    border: 1px solid #89c9c9;
}

/* 表格内容样式 */
tbody td {
    background-color: #e0f7f7;
    padding: 10px;
    border: 1px solid #89c9c9;
    text-align: center;
}


.button-container {
    display: flex;
    gap: 5px;
    justify-content: center;
}


.btn {
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    color: white;
}


.add-rule-btn {
    background-color: #6fe76f;
    color: #fff; 
    border: none;
    padding: 10px 20px;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.add-rule-btn:hover {
    background-color: #5cc15c;
}


.delete-btn {
    background-color: #ff5f5f;
    border-radius: 10px;
    padding: 5px 10px;
    cursor: pointer;
    color: white; 
    transition: background-color 0.3s;
}

.delete-btn:hover {
    background-color: #e04a4a;
}


.input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #e0f7f7;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 95%;
}


.input-container input[type="text"] {
    flex: 1;
    height: 40px;
    margin-right: 10px;
    padding: 0 10px;
    border: 1px solid #89c9c9;
    border-radius: 5px;
    outline: none;
}


.input-container input[type="text"]:focus {
    border-color: #5a9bd4;
    box-shadow: 0 0 5px rgba(90, 155, 212, 0.5);
}


.input-container label {
    margin-left: 10px;
    font-weight: bold;
    color: #005f5f;
}


.input-container input[type="radio"] {
    margin-left: 5px;
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #5a9bd4;
}


.input-container select {
    flex: 1;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #89c9c9;
    border-radius: 5px;
    outline: none;
    background-color: #e0f7f7; 
    color: #005f5f;
    cursor: pointer; /* 鼠标悬停时的指针效果 */
    transition: border-color 0.3s, background-color 0.3s;
}

.input-container select:focus {
    border-color: #5a9bd4;
    background-color: #d1f1f1;
}



.level-1 {
    color: green; /* 保密 */
}

.level-2 {
    color: orange; /* 秘密 */
}

.level-3 {
    color: red; /* 绝密 */
}


/* 分页 按钮 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination button {
    background-color: #4caf50; 
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

.pagination button:hover {
    background-color: #45a049; 
    transform: scale(1.05); 
}

.pagination button:disabled {
    background-color: #ccc; 
    cursor: not-allowed;
}